package com.ruoyi.zhgd.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.annotation.DataColumn;
import com.ruoyi.common.annotation.DataPermission;
import com.ruoyi.zhgd.domain.NLaboratoryAsphaltSofteningPointRes;
import com.ruoyi.zhgd.domain.bo.ZjExperimentBindingBo;
import com.ruoyi.zhgd.domain.vo.NLaboratoryAsphaltSofteningPointResVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 沥青软化点试验仪_结果Mapper接口
 *
 * @author zyb
 * @date 2023-09-11
 */
public interface NLaboratoryAsphaltSofteningPointResMapper extends BaseMapperPlus<NLaboratoryAsphaltSofteningPointResMapper, NLaboratoryAsphaltSofteningPointRes, NLaboratoryAsphaltSofteningPointResVo> {

    @DataPermission({
        @DataColumn(key = "deptName",value = "dept.dept_id")
    })
    List<Map> queryPages(Page page,@Param(value = "params") Map<String, Object> params);

    @DataPermission({
        @DataColumn(key = "deptName",value = "dept.dept_id")
    })
    Page<Map<String, Object>> selectRhdPage(@Param(value = "bo") ZjExperimentBindingBo bo, Page<Object> build);

    void updateStatus(@Param(value = "laboratoryId") String laboratoryId, @Param(value = "eligible")Integer eligible,@Param(value = "relevance") Integer relevance);

    String selectDeptId(String deviceId);
}
